package de.openlaboratory.xmleditor.servlet.view.menu;

public class MenuConfigurator
{
	private MenuConfiguration menuConfig;
	
	public MenuConfigurator(String menuContext)
	{
		this.menuConfig = getMenuConfiguration();
	}
	
	private MenuConfiguration getMenuConfiguration()
	{
		return new MenuConfiguration();
	}
	
	public String displayMenu()
	{
		StringBuilder s = new StringBuilder();
		
		for (MenuItem item : menuConfig.getMenuItems())
		{
			s.append(item.outputHtml());
		}
		
		return s.toString();
	}
}
